package lxt.dao;

import java.util.List;

import lxt.entity.BorrowTruckInfo;

public interface BorrowTruckDao extends ABseDao {
	/**
	 * 根据InvoiceInfoId查询
	 */
	public List<BorrowTruckInfo> queryByInvoiceInfoId(String invoiceInfoId);
	/**
	 * 加载租车信息
	 * @param truckId
	 * @param ownerName
	 * @param offset
	 * @param length
	 * @return
	 * @throws Exception
	 */
	public List<BorrowTruckInfo> loadBorrowTruck(String truckId,String ownerName,String isPayed,final int offset, final int length);
	/**
	 * 查询数量
	 */
	public int loadAllBorrowTruckCount(String truckId,String ownerName,String isPayed);
	/**
	 * 根据派单Id删除数据
	 */
	public void deleteOrder(String orderId);
}
